﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.Master" AutoEventWireup="true" CodeBehind="BGM_ExpenseSource.aspx.cs" Inherits="KPIS.GERP.GBMS.APP_UI.Form.BGM_ExpenseSource" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<%@ Register src="../Controls/Combo/SourceCombo.ascx" tagname="SourceCombo" tagprefix="uc1" %>
<%@ Register src="../Controls/Panel/UserPanel.ascx" tagname="UserPanel" tagprefix="uc3" %>
<%@ Register src="../Controls/Panel/CommandPanel.ascx" tagname="CommandPanel" tagprefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None">
    </telerik:RadAjaxLoadingPanel>

    <telerik:RadAjaxManager runat="server" ID="RadManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ddlBgmSourceSeq">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="treeSelectExpense" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
        
        </script>
    </telerik:RadCodeBlock>
 
    <div class="header-grid">
        กำหนดสิทธิในการใช้ค่าใช้จ่ายในแต่ละแหล่งเงิน</div>

    <div class="DivBody">
        <table>
            <tr>
                <td width="120px">
                    เลือกแหล่งเงิน :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlBgmSourceSeq" runat="server"
                        DataTextField="text" DataValueField="value"
                        AutoPostBack="true" Filter="Contains"
                        OnSelectedIndexChanged="ddlBgmSourceSeq_SelectedIndexChanged" 
                        Width="500px">
                    </telerik:RadComboBox>
                </td>
            </tr>
        </table>
    </div>
    <div class="DivBody">
        <div style="border-bottom-style: solid; border-width: thin; padding-bottom: 5px; font-weight: bold;" align="center">
            <asp:Button ID="cmdSave" runat="server" Text="บันทึก" onclick="cmdSave_Click" Width="100px" /><br /><br />
            **
            ทำเครื่องหมายหน้าค่าใช้จ่ายที่ต้องการให้ใช้งานได้
            **
        </div>
        <br />
        <telerik:RadTreeView ID="treeSelectExpense" runat="server"
            CheckBoxes="true" CheckChildNodes="true" TriStateCheckBoxes="true"
            DataFieldID="bgm_exp_seq" 
            DataValueField="bgm_exp_seq" 
            DataFieldParentID="upper_bgm_exp_seq"
            DataTextField="bgm_exp_name">
        </telerik:RadTreeView>
    </div>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
    <style type="text/css">
        #Button1
        {
            width: 622px;
        }
        #labelNodeTypeInfo
        {
            width: 614px;
        }
    </style>
    <link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css" />
</asp:Content>

